<?php


declare (strict_types=1);

namespace app\mall\model;

use think\admin\Model;

/**
 * 商城商品标签数据
 * @class PluginWemallGoodsMark
 * @package plugin\wemall\model
 */
class MallGoodsMark extends Abs
{
    /**
     * 获取所有标签
     * @return array
     */
    public static function items(): array
    {
        return static::mk()->where(['status' => 1])->order('sort desc,id desc')->column('name');
    }

      /**
     * 获取所有标签列表
     * @return array
     */
    public static function items_list(): array
    {
        return static::mk()->where(['status' => 1])->order('sort desc,id desc')->select()->toArray();
    }
}